package com.indusfo.spc.pojo;

import com.indusfo.spc.common.pojo.BasePojo;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;


@Table(name="ba_rule")
public class Rule extends BasePojo {
	
	@Id
	@Column(name="RULE_ID",insertable=false)
	/**
	 * @Author 熊冰 //id
	 * @Date 2020/1/16 14:36
	 */
	private Integer ruleId;
	/**
	 * @Author 熊冰 //名称
	 * @Date 2020/1/16 14:36
	 */
	private String ruleName;
	/**
	 * @Author 熊冰 //编码
	 * @Date 2020/1/16 14:36
	 */
	private String ruleCode;
	/**
	 * @Author 熊冰 // 创建时间
	 * @Date 2020/1/16 14:37
	 */
	private Date createDate;
	/**
	 * @Author 熊冰 // 修改时间
	 * @Date 2020/1/16 14:37
	 */
	private Date modifyDate;
	/**
	 * @Author 熊冰 //备注
	 * @Date 2020/1/16 14:37
	 */
	private String remark;
	/**
	 * @Author 熊冰 //状态
	 * @Date 2020/1/16 14:37
	 */
	private Integer dataState;



	/**
	 * @Author 熊冰 -------------------
	 * @Date 2020/1/17 9:14
	 */
	/**
	 * @Author 熊冰 任务单id
	 * @Date 2020/1/17 9:15
	 */
	private Integer orderId;
	/**
	 * @Author 熊冰  物料id
	 * @Date 2020/1/17 9:15
	 */
	private Integer matId;
	/**
	 * @Author 熊冰 创建数量
	 * @Date 2020/1/17 9:17
	 */
	private Integer createNum;

	public Integer getCreateNum() {
		return createNum;
	}

	public void setCreateNum(Integer createNum) {
		this.createNum = createNum;
	}

	public Integer getOrderId() {
		return orderId;
	}

	public void setOrderId(Integer orderId) {
		this.orderId = orderId;
	}

	public Integer getMatId() {
		return matId;
	}

	public void setMatId(Integer matId) {
		this.matId = matId;
	}

	public Integer getRuleId() {
		return ruleId;
	}

	public void setRuleId(Integer ruleId) {
		this.ruleId = ruleId;
	}

	public String getRuleName() {
		return ruleName;
	}

	public void setRuleName(String ruleName) {
		this.ruleName = ruleName== null ? null : ruleName.trim().replace(" ","");
	}

	public String getRuleCode() {
		return ruleCode;
	}

	public void setRuleCode(String ruleCode) {
		this.ruleCode = ruleCode== null ? null : ruleCode.trim().replace(" ","");
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getModifyDate() {
		return modifyDate;
	}

	public void setModifyDate(Date modifyDate) {
		this.modifyDate = modifyDate;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark== null ? null : remark.trim().replace(" ","");
	}

	public Integer getDataState() {
		return dataState;
	}

	public void setDataState(Integer dataState) {
		this.dataState = dataState;
	}
}
